Run Custom Query

Description

The Run Custom Query action queries records based on custom filter and order expressions. This query can include parameters prompted for at run-time. If you choose to prompt for parameters at run-time, you can customize the prompts, title, and buttons on the parameters dialog.

Procedure

  1. Make a selection in the Query records in which Form/Browse window? field. This field will be grayed out unless this action is based on a Form or Browse. The choices are:

    • "Current Form or Browse Window".

    • "Another Form or Browse Window".

  2. If you selected "Another Form or Browse Window", in the Window Name field select either:

    • "Forms"

    • "Browses"

  3. Select one of the listed forms or browses.

  4. Optionally, check Prompt for Parameters at run-time? to display the Define Parameters button. The resulting Define Parameters dialog box lets you define the parameters that the user will be prompted for. When you add parameters, you are creating a dialog box to collect variables from the user at run-time. Once you have created the parameters for the query, you will then create an expression using the parameters on which the query will be based.

  5. Optionally, enter a character filter expression that selects records from the table in the Filter Expression field, or click the 'funnel' icon to open the Filter Builder.

  6. Optionally, enter an character order expression that sorts the number of records returned in the Order Expression field, or click the 'A..Z' button to open the Order Builder.

  7. Click the Query Options tab.

  8. Optionally, check the Combine filter with existing filter (if any) check box.

  9. Optionally, check the Exclude records selected by filter check box.

  10. Optionally, click the Tips on Parameters tab.

  11. Click Next >.

  12. Optionally modify the comment that describes the action.

  13. Click Finish.

See Also